<?php 
/**
* 上传类
*/
class Upload 
{
	public $path = "./upload/";
	public $type = "jpg";
	public $max_size = "5000";
	public function __construct($config)
	{
		
	}

	public function save()
	{
		$this->_checkDir();
		$this->_checkType();
		$this->_checkMax();
		$this->_moveFile();

	}

	private function _checkDir()
	{
		# code...
	}

	private function _checkType()
	{
		// $_FILES
	}

	private function _checkMax()
	{
		// $_FILES
	}

	private function _moveFile()
	{
		// $_FILES
	}
	
}









 ?>